/**
 *
 */
package net.oschina.git.haxteam.zrank.api;

import net.oschina.git.haxteam.zrank.jdbc.UserInfoManager;

/**
 * @author qq996
 *
 */
public class PlayerData {

	/**获取Xp*/
	public static int getXp(String playername){
		int xp = Integer.parseInt(UserInfoManager.getUserXp(playername));
		return xp;
	}

	/**设置Xp*/
	public static void setXp(String playername, int xp){
		UserInfoManager.setUserXp(playername, xp);;
	}

	/**获取level*/
	public static int getLevel(String playername){
		int level = Integer.parseInt(UserInfoManager.getUserLevel(playername));
		return level;
	}

	/**设置level*/
	public static void setLevel(String playername, int level){
		UserInfoManager.setUserlevel(playername, level);
	}

}
